#include "DbInstanceSet.h"

DbInstanceSet*  g_pDbInstanceSet = NULL;

DbInstanceSet::DbInstanceSet()
    :m_pDb(NULL)
{
    m_pDb = new Database;
}

//
DbInstanceSet::~DbInstanceSet()
{
    if(m_pDb != NULL)
    {
        m_pDb->Logout();
        SAFE_DELETE(m_pDb)
     }
}

//
Database* DbInstanceSet::GetDatabase() const
{
    return m_pDb;
}

